<!-- 管理员主页面 -->
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>layout 后台大布局 - Layui</title>
  <link rel="stylesheet" href="css/layui.css">
  <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>

<body class="layui-layout-body">
  <div id="app" class="layui-layout layui-layout-admin">
    <div class="layui-header">
      <div class="layui-logo">后台数据管理</div>

      <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item"><a @click="f1('furniture.html')">控制台</a></li>
        <li class="layui-nav-item"><a @click="f1('furniture.html')">商品管理</a></li>
        <li class="layui-nav-item"><a @click="f1('user.html')">用户管理</a></li>
      </ul>
      <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
          <a href="javascript:;">
            <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
            贤心
          </a>
          <dl class="layui-nav-child">
            <dd><a href="">基本资料</a></dd>
            <dd><a href="">安全设置</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item"><a href="/furniture/back/admin/loginOut">退出登录</a></li>
      </ul>
    </div>

    <div class="layui-side layui-bg-black">
      <div class="layui-side-scroll">
        <!-- 左侧导航区域 -->
        <ul class="layui-nav layui-nav-tree" lay-filter="test">
          <li class="layui-nav-item layui-nav-itemed">
            <a class="" href="javascript:;">后台管理</a>
            <dl class="layui-nav-child">
              <dd><a @click="f1('user.html')">用户列表</a></dd>
              <dd><a @click="f1('furniture.html')">商品列表</a></dd>
              <dd><a @click="f1('category.html')">类别管理</a></dd>
            </dl>
          </li>
          
          <li class="layui-nav-item"><a @click="f1('addFurniture.html')">发布商品</a></li>
          <li class="layui-nav-item"><a @click="f1('order.html')">订单管理</a></li>
        </ul>
      </div>
    </div>

    <div class="layui-body">
      <!-- 内容主体区域 -->
      <iframe :src="i_url" style="height: 100%; width: 100%;"></iframe>
    </div>
  </div>
  <script src="layui.js"></script>
  <script>
    //JavaScript代码区域
    layui.use('element', function () {
      var element = layui.element;
    });

    
  </script>

<!-- 初始界面 -->
<script>
  const app = new Vue({
    el: "#app",
    data: {
      i_url:"Info.html"
    },
    methods:{
      f1(url){
        this.i_url = url
      }
    }
  })
</script>

</body>

</html>